import request from '@/utils/request'

export function loginBroker(data) {
  return request({
    url: '/api/gateway/login',
    method: 'post',
    data: JSON.stringify(data)
  })
}

// 获取已经启用的通道列表
export function getBrokers(params) {
  console.log(params)
  return request({
    url: '/api/gateway/data',
    method: 'get',
    params
  })
}

export function getBrokerMeta(params) {
  return request({
    url: '/api/gateway/meta',
    method: 'get',
    params
  })
}
